# 交易品种配置
SYMBOL_CONFIG = {
    # 股指期货
    'ES': {'multiplier': 50.0},    # E-mini S&P 500
    'MES': {'multiplier': 5.0},    # Micro E-mini S&P 500
    'NQ': {'multiplier': 20.0},    # E-mini NASDAQ-100
    'MNQ': {'multiplier': 2.0},    # Micro E-mini NASDAQ-100
    'YM': {'multiplier': 5.0},     # E-mini Dow
    'MYM': {'multiplier': 0.5},    # Micro E-mini Dow
    'RTY': {'multiplier': 50.0},   # E-mini Russell 2000
    'M2K': {'multiplier': 5.0},    # Micro E-mini Russell 2000
    
    # 商品期货
    'GC': {'multiplier': 100.0},   # Gold
    'MGC': {'multiplier': 10.0},   # Micro Gold
    'SI': {'multiplier': 5000.0},  # Silver
    'SIL': {'multiplier': 1000.0}, # Micro Silver
    'CL': {'multiplier': 1000.0},  # Crude Oil
    'MCL': {'multiplier': 100.0},  # Micro Crude Oil
    'NG': {'multiplier': 10000.0}, # Natural Gas
    'MNG': {'multiplier': 1000.0}, # Micro Natural Gas
    
    # 外汇期货
    '6E': {'multiplier': 125000.0}, # Euro FX
    'M6E': {'multiplier': 12500.0}, # Micro Euro FX
    '6J': {'multiplier': 12500000.0}, # Japanese Yen
    'M6J': {'multiplier': 1250000.0}, # Micro Japanese Yen
    '6B': {'multiplier': 62500.0},  # British Pound
    'M6B': {'multiplier': 6250.0},  # Micro British Pound
    
    # 国债期货
    'ZB': {'multiplier': 1000.0},  # 30-Year U.S. Treasury Bond
    'ZN': {'multiplier': 1000.0},  # 10-Year U.S. Treasury Note
    'ZF': {'multiplier': 1000.0},  # 5-Year U.S. Treasury Note
    'ZT': {'multiplier': 1000.0},  # 2-Year U.S. Treasury Note
}

def get_multiplier(symbol: str) -> float:
    """
    获取交易品种的multiplier
    
    Args:
        symbol: 交易品种代码
        
    Returns:
        float: 该品种的multiplier，如果未找到则返回1.0
    """
    return SYMBOL_CONFIG.get(symbol, {'multiplier': 1.0})['multiplier'] 